<!DOCTYPE html>
<html style="height: 100%">
<head>
    <meta charset="utf-8"><link rel="icon" href="img/icon.jpg">
    <title>{{title}}</title>
</head>
<link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" type="text/css" href="css/lunbo.css">
<style lang="scss" scoped >

</style>
<body style="height: 100%; margin: 0">

<header class="head">
    <h3 class="head_button" ><a style="background-color: gray"  href="/">首页</a></h3>
    <h3 class="head_button"><a href="/hurt">小麦病虫害</a></h3>
    <h3 class="head_button" ><a href="/mostLike_addr">最受欢迎农产品价格比较</a></h3>
    <h3 class="head_button" ><a href="/line">农业总产值预测</a></h3>
    <h3 class="head_button" ><a href="/line_product">历史农产品价格</a></h3>
</header>
<p style="width: calc(40%);margin-left: 3%">
    <h3 style="margin-left: 8%">欢迎来到e慧农网！</h3>
</p>
<div class="content" id="content">
			<span class="change left" id="pre">
			&lt;
		</span>
    <span class="change right" id="next">
			&gt;
		</span>
    <ul class="contentList" id="contentList">
        <li><a href="/hurt"><img src="img/1.jpg" /></a></li>
        <li><a href="/mostLike_addr"><img src="img/2.jpg" /></a></li>
        <li><a href="/line"><img src="img/3.jpg" /></a></li>
        <li><a href="/line_product"><img src="img/4.png" /></a></li>
    </ul>

    <div class="shade">
        <ul class="contentRount" id="contentRount">
            <li></li>
            <li></li>
            <li></li>
            <li></li>
        </ul>
    </div>
</div>

<p style="width: calc(40%);margin-left: 3%">
    <h3 style="margin-left: 8%">网站分以下四个模块：</h3>
</p>
<section class="section">
        <div class="div">
            <h3 class=""><a href="/hurt">小麦病虫害</a></h3>
        </div>
        <div class="div">
            <h3 class="" ><a href="/mostLike_addr">最受欢迎农产品</a></h3>
        </div>
        <div class="div">
            <h3 class="" ><a href="/line">农业总产值预测</a></h3>
        </div>
        <div class="div">
            <h3 class="" ><a href="/line_product">历史农产品价格</a></h3>
        </div>
</section>


<!--<h1>{{content}}</h1>-->
</body>

<script src="https://code.bdstatic.com/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<script src="1.js"></script>
<script src="lunbo.js"></script>
<script type="text/javascript">
//原生js发送Ajax
function httpPost(url,param) {
    var xhr = new XMLHttpRequest();
    xhr.open('POST', url,true);
    xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    xhr.send(param);
	
    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4 && xhr.status == 200) {
            console.log(xhr.responseText);
            return JSON.parse(xhr.responseText);
        }
    };
}
function httpGet(url) {
    var xhr = new XMLHttpRequest();
    xhr.open('GET', url,true);
    xhr.setRequestHeader("Content-type","application/x-www-form-urlencoded");
    xhr.send(null);

    xhr.onreadystatechange = function () {
        if (xhr.readyState == 4 && xhr.status == 200) {
            console.log(xhr.responseText);
            return JSON.parse(xhr.responseText);
        }
    };
}

// var param = "method=/ruoyi-admin/biz/price_p/list&name="+1;
var params = ['method=/biz/eyespot/list&name="+1',
    'method=/biz/isease/list&name="+1',
    'method=/biz/spider/list&name="+1']

// var param = "";
// var param = "method=/login/action&name="+1;

// for(var i in params){
//     var r = httpPost('/api',params[i]);
//     console.log(r);
// }
//
// // alert(11);
// var aa = confirm(111);
// alert(aa);
//
// var a = prompt("请输入您的名字", "");
// alert(a);
// var r = httpGet('/api?method=getUserList&param1=1');
// console.log(r);







</script>
</html>   



